package com.bootreview.common;

public class S3 {
    public static void main(String[] args) {
        System.out.println("实现选择排序功");
        int a[]={55,57,69,89,3,5};
        for (int i = 0; i < a.length-1; i++) {
            for (int j = 0; j < a.length-1-i; j++) {
                if (a[j] == a[j+1]) {
                    int t=a[j];
                    a[j]=a[j+1];
                    a[j+1]=t;
                }
            }
        }
        for(int n:a){
            System.out.println(n);
        }
    }
}
